namespace Crux.Core.Domains;
/// <summary>
/// IEventHandlerFactory
/// </summary>
public interface IEventHandlerFactory
{
    /// <summary>
    ///
    /// </summary>
    /// <param name="eventDataType"></param>
    /// <param name="serviceProvider"></param>
    /// <returns></returns>
    IEnumerable<IEventHandler> CreateEventHandlers(
        Type eventDataType,
        IServiceProvider? serviceProvider = null);
}